#define  _CRT_SECURE_NO_WARNINGS  1
#include"queue.h"
void test1()
{
	Que q;
	QueueInit(&q);

	QueuePush(&q, 1);
	QueuePush(&q, 2);
	QueuePush(&q, 3);
	QueuePush(&q, 4);
	QueuePush(&q, 5);

	QNode* cur = q.head;
	while (cur != NULL)
	{
		printf("%d->", cur->data);
		cur = cur->next;
		//QueuePop(&q);
	}
	printf("\n");
	printf("%d %d", QueueFront(&q),QueueTail(&q));
	printf("\n");
	QueuePop(&q);
	QueuePop(&q);
	QueuePop(&q);

	cur = q.head;
	while (cur != NULL)
	{
		printf("%d->", cur->data);
		cur = cur->next;
		//QueuePop(&q);
	}
	printf("\n");
	printf("%d", QueueFront(&q));
	printf("\n");
	QueueDestroy(&q);

}
int main()
{
	test1();
	return 0;
}